package 设计模式.observer;

/**
 * @功能
 * 主题对象
 * @创建时间 2020/5/4
 */
public class ConcreteSubject extends Subject{
    private int state;

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
        this.notifyAllO();
    }
}
